package com.seventh.parkingrent.dao;

import com.seventh.parkingrent.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author Lucas
 * @since 2021-08-24
 */
public interface UserMapper extends BaseMapper<User> {


    @Select("SELECT user_id,code,identify,user_pic,isaudit,row_update_time,recommender_id,password,idcard_pic,phone,idcard,row_add_time,state,email,username FROM pr_user WHERE username = #{username} AND password = #{password}")
    public  User login(User user);

}
